package com.example.tse.rbhttpservice.service.shopping.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.shopping.model.ShoppingGetSubOrderList;
/**
* 每次进入拆单页面，都获取拆单后的数据，对于“已生成订单”点击按钮跳转到订单详情
* @author wliu
* edit tse
*/
public class ShoppingGetSubOrderListResponse extends RudderResponse{

private List<ShoppingGetSubOrderList> getSubOrderList = new ArrayList<ShoppingGetSubOrderList>();


/**
* @return getSubOrderList
*/
public List<ShoppingGetSubOrderList> getGetSubOrderList() {
return this.getSubOrderList;
}

/**
* @return getSubOrderList
*/
public void setGetSubOrderList(List<ShoppingGetSubOrderList> getSubOrderList) {
this.getSubOrderList = getSubOrderList;
}
/**
methodName    GetSubOrderList
type          List<ShoppingGetSubOrderList>
name          getSubOrderList
defaultType   new ArrayList<ShoppingGetSubOrderList>()
*/

/**


    private static void filterFor(ShoppingGetSubOrderListGoods shopping) {
        if (shopping.getProductId() == null) {
            shopping.setProductId("");
        }
        if (shopping.getName() == null) {
            shopping.setName("");
        }
        if (shopping.getPrice() == null) {
            shopping.setPrice("");
        }
        if (shopping.getQuantity() == null) {
            shopping.setQuantity("");
        }
        if (shopping.getThumbnailPic() == null) {
            shopping.setThumbnailPic("");
        }
        if (shopping.getSubTotal() == null) {
            shopping.setSubTotal("");
        }
        if (shopping.getSpec() == null) {
            shopping.setSpec("");
        }
    }

    private static void filterFor(ShoppingGetSubOrderList shopping) {
        if (shopping.getOrderId() == null) {
            shopping.setOrderId("");
        }
        if (shopping.getGoods() == null) {
            shopping.setGoods(new ArrayList<ShoppingGetSubOrderListGoods>());
        } else {
            for (ShoppingGetSubOrderListGoods item : shopping.getGoods()) {
                filterFor(item);
            }
        }
        if (shopping.getWareName() == null) {
            shopping.setWareName("");
        }
        if (shopping.getSubTax() == null) {
            shopping.setSubTax("");
        }
        if (shopping.getSubTotal() == null) {
            shopping.setSubTotal("");
        }
        if (shopping.getBeforeTax() == null) {
            shopping.setBeforeTax("");
        }
        if (shopping.getAfterTax() == null) {
            shopping.setAfterTax("");
        }
        if (shopping.getStatus() == null) {
            shopping.setStatus("");
        }
        if (shopping.getRevOrderId() == null) {
            shopping.setRevOrderId("");
        }
    }

    public static void filter(ShoppingGetSubOrderListResponse shopping) {
        if (shopping.getGetSubOrderList() == null) {
            shopping.setGetSubOrderList(new ArrayList<ShoppingGetSubOrderList>());
        } else {
            for (ShoppingGetSubOrderList item : shopping.getGetSubOrderList()) {
                filterFor(item);
            }
        }
    }

*/

}
